import * as React from "react";
import PriceFileCondition from "./compontents/PriceFileCondition";
import PriceFileTable from "./compontents/PriceFileTable";

export interface PriceFileProps {}

export interface PriceFileState {}
interface ConditionAttrData {
  priceType: string;
  isEnable: string;
}
class PriceFile extends React.Component<PriceFileProps, PriceFileState> {
  private ConditionAttr: ConditionAttrData = {
    priceType: "",
    isEnable: "",
  };
  render() {
    return (
      <div className="PriceFile">
        <PriceFileCondition
          onSubmit={(data: ConditionAttrData) => {
            this.ConditionAttr = data;
            this.forceUpdate();
          }}
        ></PriceFileCondition>
        <PriceFileTable ConditionAttr={this.ConditionAttr}></PriceFileTable>
      </div>
    );
  }
}

export default PriceFile;
